<template>
	<view class="card">
		<view class="radio-box">
			<image class="icon" src="/static/image/radio_icon.png" mode="aspectFit"></image>
		</view>
		<view class="cell-value-box">
			<view class="card-icon">
				<image class="icon" src="/static/image/user.png" mode="aspectFit"></image>
			</view>
			<view class="cardname">
				{{value}}
			</view>
		</view>
		<view class="right-icon" v-if="rightIcon">
			<image class="icon" src="/static/image/more_right_icon.png" mode="aspectFit"></image>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			value:{ // 显示名称
				type:String,
				default:null,
			},
			rightIcon:{ // 是否显示跳转按钮
				type:Boolean,
				default:false,
			},
		},
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.card{
		display: flex;
		position: relative;
		width: 100%;
		box-sizing: border-box;
		padding:20rpx;
		border-bottom:1px solid #f9f9f9;
		.radio-box{
			margin-top: 20rpx;
			width: 40rpx;
			height: 40rpx;
			.icon{
				width: 100%;
				height: 100%;
			}
		}
		.cell-value-box{
			display: flex;
			margin-left: 40rpx;
			line-height: 80rpx;
			font-size: 28rpx;
			.card-icon{
				width: 80rpx;
				height: 80rpx;
				background-color: #cccccc;
				border-radius: 100%;
				.icon{
					width: 100%;
					height: 100%;
				}
			}
			.cardname{
				margin-left: 20rpx;
			}
		}
		.right-icon{
			width:40rpx;
			height:40rpx;
			position: absolute;
			right: 20rpx;
			top:40rpx;
			.icon{
				width: 100%;
				height: 100%;
			}
		}
	}
</style>
